import request from "../../request";
export default {
  /**************** 操作日志 ****************/
  pageListOperation(data) {
    //获取操作日志列表
    return request({
      url: "TsysOperationLog/page",
      method: "post",
      data
    });
  },
  removeOperation(data) {
    //删除操作日志
    return request({
      url: `TsysOperationLog/remove${data.ids == "all" ? "All" : ""}`,
      method: "post",
      data
    });
  },
  exportOperation(data) {
    //导出操作日志
    return request({
      url: "TsysOperationLog/export",
      method: "post",
      // download: true,
      data
    });
  },

  /**************** 登录日志 ****************/
  pageListLogin(data) {
    //获取登录日志列表
    return request({
      url: "/TsysLoginLog/page",
      method: "post",
      data
    });
  },
  removeLogin(data) {
    //删除登录日志
    return request({
      url: `/TsysLoginLog/remove${data.ids == "all" ? "All" : ""}`,
      method: "post",
      data
    });
  },
  exportLogin(data) {
    //导出登录日志
    return request({
      url: "TsysLoginLog/export",
      method: "post",
      // download: true,
      data
    });
  }
};
